<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="__TMPL__Public/assets/book_static/css/base.css" />
	<link rel="stylesheet" href="__TMPL__Public/assets/book_static/css/login.css" />
	<title>{$site_name}</title>
	<script type="text/javascript" src="__TMPL__Public/assets/book_static/js/jquery.js"></script>
	<script type="text/javascript" src="__TMPL__Public/assets/layui/layui.all.js"></script>
</head>
<body>
	<div id="container">
		<div id="bd">
			<form method="post" name="login" id="login" onsubmit="javascript:docheck()" action="{:U('index/dologin')}" autoComplete="off">
				<div class="login1">
					<div class="login-top"><h1 class="logo"></h1></div>
					<div class="login-input">
						<p class="user ue-clear">
							<label>用户名</label>
							<input type="text" name="user_login" id="user_login" />
						</p>
						<p class="password ue-clear">
							<label>密&nbsp;&nbsp;&nbsp;码</label>
							<input  type="password" name="password"  id="password" />
						</p>
						<p class="yzm ue-clear">
							<label>验证码</label>
							<input type="text" id="verify" name="verify" />
							<cite>{$verrifycode}</cite>
						</p>
					</div>
					<div class="login-btn ue-clear">
						<a href="javascript:void(0);$('#login').submit();" class="btn">登录</a>
						<div class="remember ue-clear">
							<input type="checkbox" id="remember" />
							<em></em>
							<label for="remember">一个月内无需再次登录</label>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
    <div id="ft">CopyRight&nbsp;2017&nbsp;&nbsp;版权所有&nbsp;&nbsp;织梦的鱼&nbsp;&nbsp;QQ:289593636</div>
</body>
<script type="text/javascript" src="__TMPL__Public/assets/book_static/js/jquery.js"></script>
<script type="text/javascript" src="__TMPL__Public/assets/book_static/js/common.js"></script>
<script type="text/javascript">
var height = $(window).height();
$("#container").height(height);
$("#bd").css("padding-top",height/2 - $("#bd").height()/2);

$(window).resize(function(){
	var height = $(window).height();
	$("#bd").css("padding-top",$(window).height()/2 - $("#bd").height()/2);
	$("#container").height(height);
	
});

$('#remember').focus(function(){
   $(this).blur();
});

$('#remember').click(function(e) {
	checkRemember($(this));
});

function docheck(){
	var user_login = $("#user_login").val();
	var password = $("#password").val();
	var verify = $("#verify").val();
	if(user_login==''){
		layer.msg('账户不能为空！', {icon:2,shade: 0.1});
		return false;
	}
	if(password==''){
		layer.msg('密码不能为空！', {icon:2,shade: 0.1});
		return false;
	}
	if(verify==''){
		layer.msg('验证码不能为空！', {icon:2,shade: 0.1});
		return false;
	}
	layer.load(0, {shade: 0.1,time: 10*1000});
}



$('#verify').keypress(function(event){  
	var keycode = (event.keyCode ? event.keyCode : event.which);  
	if(keycode == '13'){  
		$("#login").submit();
	}  
});  

</script>
</html>